<template>
   
   <el-form ref="loginRefForm" :model="userDetail">
    <el-form-item label="Id">
    {{ userDetail.id }}
    </el-form-item>
    <el-form-item label="账号">
     {{ userDetail.loginAct }}
    </el-form-item>
    <el-form-item label="使用人">
     {{ userDetail.name }}
    </el-form-item>
    <el-form-item label="手机号">
     {{ userDetail.phone }}
    </el-form-item>
    <el-form-item label="邮箱">
     {{ userDetail.email }}
    </el-form-item> <el-form-item label="账户是否没有过期">
     {{ userDetail.accountNoExpired?'是':'否' }}
    </el-form-item>
    <el-form-item label="密码是否没有过期">
     {{ userDetail.credentialsNoExpired?'是':'否' }}
    </el-form-item>
    <el-form-item label="账号是否没有锁定">
     {{ userDetail.accountNoLocked?'是':'否' }}
    </el-form-item>
    <el-form-item label="账号是否启用">
     {{ userDetail.accountEnabled?'是':'否' }}
    </el-form-item>
    <el-form-item label="创建时间">
     {{ userDetail.createTime }}
    </el-form-item>
    <el-form-item label="创建人">
     {{ userDetail.createBy }}
    </el-form-item>
    <el-form-item label="编辑时间">
     {{ userDetail.editTime }}
    </el-form-item>
    <el-form-item label="编辑人">
     {{ userDetail.editBy }}
    </el-form-item>
    <el-form-item label="最近登录时间">
     {{ userDetail.lastLoginTime }}
    </el-form-item>

    <el-form-item label="">
     <el-button type="primary" @click="$router.go(-1)">返回</el-button>
    </el-form-item>


   </el-form>



</template>

<script>
import Request from '../http/Request';
export default {
    name: "userDetail",
    data() {
        return {
            userDetail: {}
        }
    },
    methods: {
      loadUserDetail() {
        let id = this.$route.params.id
        Request.doGet('/api/user/'+id).then(res => {
          this.userDetail = res.data
        })
      }
    },
    mounted() {
      this.loadUserDetail()
    }
}
</script>

<style scoped>

.el-form-item label {
    white-space: nowrap; /* Ensures the label text does not wrap to the next line */
}

.el-form{
    width: 500px;
    margin: 0 auto;
}



</style>